package com.mzj.saas.mservice.house.entity;

import com.mzj.saas.commons.IdEntity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 智能锁授权信息表
 */
@Entity
@Table(name = "saas_house_lock_audit")
public class LockAudit extends IdEntity {

    @Basic
    @Column(name = "house_id", nullable = true)
    private String houseId; //公租房id

    @Basic
    @Column(name = "org_id", nullable = true)
    private Long orgId; //产权人id

    @Basic
    @Column(name = "match_user_id", nullable = true)
    private String matchUserId; //承租人

    @Basic
    @Column(name = "status", nullable = true)
    private Integer status; //状态：0未授权 1已授权 2已冻结、3已解冻

    @Basic
    @Column(name = "type", nullable = true)
    private Integer type; //授权类型：1密码、2ICU卡、3身份证

    @Basic
    @Column(name = "operation_id", nullable = true)
    private String operationId; //授权操作人

    @Basic
    @Column(name = "community_number", nullable = true)
    private String communityNumber; //小区编号

    @Basic
    @Column(name = "community_name", nullable = true)
    private String communityName; //小区名称

    @Basic
    @Column(name = "build_name", nullable = true)
    private String buildName; //楼栋名称

    @Basic
    @Column(name = "unit_name", nullable = true)
    private String unitName; //单元名称

    @Basic
    @Column(name = "room_number", nullable = true)
    private String roomNumber; //房号

    @Basic
    @Column(name = "match_user_name", nullable = true)
    private String matchUserName; //承租人姓名

    @Basic
    @Column(name = "org_name", nullable = true)
    private String orgName; //产权单位

    @Basic
    @Column(name = "audit_time", nullable = true)
    private Date auditTime; //授权时间

    @Basic
    @Column(name = "total_close_day", nullable = true)
    private Integer totalCloseDay; //累计未开门时间(天)

    @Basic
    @Column(name = "last_open_time", nullable = true)
    private Date lastOpenTime; //最后一次开门时间

    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public String getMatchUserId() {
        return matchUserId;
    }

    public void setMatchUserId(String matchUserId) {
        this.matchUserId = matchUserId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getOperationId() {
        return operationId;
    }

    public void setOperationId(String operationId) {
        this.operationId = operationId;
    }

    public String getCommunityNumber() {
        return communityNumber;
    }

    public void setCommunityNumber(String communityNumber) {
        this.communityNumber = communityNumber;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getBuildName() {
        return buildName;
    }

    public void setBuildName(String buildName) {
        this.buildName = buildName;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getRoomNumber() {
        return roomNumber;
    }

    public void setRoomNumber(String roomNumber) {
        this.roomNumber = roomNumber;
    }

    public String getMatchUserName() {
        return matchUserName;
    }

    public void setMatchUserName(String matchUserName) {
        this.matchUserName = matchUserName;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public Integer getTotalCloseDay() {
        return totalCloseDay;
    }

    public void setTotalCloseDay(Integer totalCloseDay) {
        this.totalCloseDay = totalCloseDay;
    }

    public Date getLastOpenTime() {
        return lastOpenTime;
    }

    public void setLastOpenTime(Date lastOpenTime) {
        this.lastOpenTime = lastOpenTime;
    }
}
